package org.lee.springcloud.gateway.controllers;

import org.lee.springcloud.gateway.vo.ApiResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jackielee
 * @version 1.0
 * @description FallbackController
 * @date 2021/3/26
 **/
@RestController
public class FallbackController {

    /**
     * 回滚
     * @return
     */
    @GetMapping("/fallbackA")
    public ApiResult fallbackA() {
        ApiResult result = new ApiResult("1001", "服务暂时不可用");
        return result;
    }
}
